package com.echat.business.book.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.echat.business.book.dao.DiscussionReplyMapper;
import com.echat.business.book.model.DiscussionReply;
import com.echat.business.book.service.IDiscussionReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 评论回复表 服务实现类
 * </p>
 *
 * @author chentl123
 * @since 2019-05-28
 */
@Service
public class DiscussionReplyServiceImpl extends ServiceImpl<DiscussionReplyMapper, DiscussionReply> implements IDiscussionReplyService {
    @Autowired
    private DiscussionReplyMapper discussionReplyMapper;

    @Override
    public List<DiscussionReply> getReplysByDiscussionId(Integer discussionId) {
        return discussionReplyMapper.getReplysByDiscussionId(discussionId);
    }
}
